<%--
  ~ Copyright (c) 2009.
  ~ nick@tmro.net
  --%>
<!--
Created by IntelliJ IDEA.
User: nick
Date: Apr 5, 2009
Time: 10:01:23 PM
To change this template use File | Settings | File Templates.
-->
<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Edit Category</title>
</head>
<body>
<f:view>
    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
    <h1>Edit Category</h1>
    <h:form>
        <h:panelGrid columns="2">
            <h:outputText value="name:"/>
            <h:inputText value="#{category.entity.name}" title="name"/>
            <h:outputText value="version:"/>
            <h:inputText value="#{category.entity.version}" title="version"/>
            <h:outputText value="dateCreated:"/>
            <h:inputText value="#{category.entity.dateCreated}" title="dateCreated"/>
            <h:outputText value="dateModified:"/>
            <h:inputText value="#{category.entity.dateModified}" title="dateModified"/>
            <h:outputText value="stores:"/>

        </h:panelGrid>

        <h:commandButton action="#{category.save}" value="Save"/>
        <h:commandButton action="categoryList" value="Cancel"/>
        <br>
    </h:form>
</f:view>
</body>
</html>